更新 Royalty Settlement 对象

通过 royalty_settlement 对象的 id 更新一个已创建的 royalty_settlement 对象。

请求参数描述
ROYALTY_SETTLEMENT_ID required stringroyalty_settlement 对象的 id,该参数仅需要填写在请求地址内。
status required string状态修改,取值范围为:"pending" 和 "canceled"。如需要进行分润结算确认,请传入:"pending" ; 如需取消分润结算,请传入:"canceled"。

返回

返回一个更新后的 royalty_settlement 对象,或者返回一个错误,详见 错误

定义

PUT https://api.pingxx.com/v1/royalty_settlements/{ROYALTY_SETTLEMENT_ID}
待补充
待补充
待补充
待补充
待补充
待补充
待补充

请求示例

curl https://api.pingxx.com/v1/royalty_settlements/{ROYALTY_SETTLEMENT_ID} \
-H "Pingplusplus-Request-Timestamp: 1475029155" \
-H "Pingplusplus-Signature: SIGNATURE" \
-u sk_test_ibbTe5jLGCi5rzfH4OqPW9KC: \
-d'{
 "status": "canceled"
}'
待补充
待补充
待补充
待补充
待补充
待补充
待补充

返回示例

{
    "id": "170302171104000011",
    "object": "royalty_settlement",
    "payer_app": "app_1Gqj58ynP0mHeX1q",
    "amount": 1,
    "amount_canceled": 1,
    "amount_failed": 0,
    "amount_succeeded": 0,
    "count": 1,
    "count_canceled": 1,
    "count_failed": 0,
    "count_succeeded": 0,
    "created": 1488445864,
    "fee": 0,
    "livemode": true,
    "metadata": {},
    "method": "unionpay",
    "operation_url": null,
    "royalty_transactions": {
        "object": "list",
        "has_more": false,
        "url": "/v1/royalty_transactions",
        "data": [
            {
                "id": "170302171104000011",
                "object": "royalty_transaction",
                "amount": 1,
                "status": "canceled",
                "settle_account": "320217022818142300000901",
                "source_user": "user_002",
                "recipient_app": null,
                "royalty_settlement": "170302171104000011"
            }
        ]
    },
    "status": "canceled",
    "time_finished": null
}